package cn.getech.data.development.service;

import cn.getech.data.development.entity.BdpDataAssetsModel;
import cn.getech.data.development.entity.TableInfo;
import cn.getech.data.development.model.dto.AlgorithmDevelopmentRerunBigDataDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 模型实时状态表 服务类
 * </p>
 *
 * @author zzm
 * @since 2021-01-19
 */
public interface IDataAssetsModelService extends IService<BdpDataAssetsModel> {
    List<BdpDataAssetsModel> selectModelsByAlgorithmTypeAndModelType(Map<String,String> param);

    List<TableInfo>  pdTableExistsXfieldAndPrimaryKey(List<TableInfo> tableInfoList, Integer modelId);

    List<Map<String,Object>>selectReultFieldMapperList(String modelTypeId,Integer modelId,Integer outputPreTableId);

    AlgorithmDevelopmentRerunBigDataDto returnAlgorithmDevDataToBigData(Integer jobNodeId,Integer modelId);

    void checkIsPrimaryKey(Integer tableId, String fieldName);

    void checkSameFiled(List<Map<String,Object>> mapList);

    boolean checkMapperResultFiledType(Integer modelId,List<Map<String,String>>preResultInfos);

    void checkMappperResultFiledNum(Integer outputPreTableId,List<Map<String,Object>> preResultInfos);
}
